#!/usr/bin/env bash 
# 执行初始化函数

init(){  
    echo "=========init is begin....."  
    # 系统初始部分安装
    yum -y upgrade
    yum -y install wget
    yum -y install vim
    
    # 源码编译工具
    yum install gcc
    yum install gcc-c++
    yum install -y pcre pcre-devel
    yum install -y zlib zlib-devel
    yum install -y openssl openssl-devel
    
    
    # 安装supervisord
    yum install epel-release
    yum install -y supervisor
    systemctl enable supervisord
    systemctl start supervisord
    
    # python3依赖
    yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel
    
    # git安装
    yum install -y git
    
    echo "=========init is end"
}  

init
